home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #4 / Amiga Plus CD - 2000 - No. 4.iso / PowerPC / Dev / PPCRelease / include / powerup / ppclib / ppc.i < prev    next >
Encoding:
Text File  |  1998-07-11  |  2.1 KB  |  103 lines

  1.     IFND POWERUP_PPCLIB_PPC_I
  2. POWERUP_PPCLIB_PPC_I    SET    1
  3.  
  4.     include "utility/tagitem.i"
  5.  
  6. ;/* PPCGetInfo() Tags */
  7.  
  8. PPCINFOTAG_Dummy    =    (TAG_USER+$1f000)
  9.  
  10. ;/* Version of the CPU
  11. ; * (Get)
  12. ; */
  13. PPCINFOTAG_CPU        =    (PPCINFOTAG_Dummy+$1)
  14.  
  15. ;/* CPU Count
  16. ; * (Get)
  17. ; */
  18. PPCINFOTAG_CPUCOUNT    =    (PPCINFOTAG_Dummy+$2)
  19.  
  20. ;/* Clock of the CPU
  21. ; * (Get)
  22. ; */
  23. PPCINFOTAG_CPUCLOCK    =    (PPCINFOTAG_Dummy+$3)
  24.  
  25. ;/* Revision of the CPU
  26. ; * (Get)
  27. ; */
  28. PPCINFOTAG_CPUREV    =    (PPCINFOTAG_Dummy+$4)
  29.  
  30. ;/* Default ExceptionHook
  31. ; * If you want to install an ExceptionHook
  32. ; * to catch all exceptions by a debugger for example
  33. ; * (Get/Set)
  34. ; */
  35. ; */
  36. PPCINFOTAG_EXCEPTIONHOOK=    (PPCINFOTAG_Dummy+$5)
  37.  
  38. ;/* Add PPCCreateTask Hook (V45)
  39. ; * If you want to be notified when a new PPC Task
  40. ; * is created. Usable for a debugger or a Task Viewer.
  41. ; *
  42. ; * BOOL CallHookPkt(DeleteTaskHook, MyTaskObject, TaskHookMsg);
  43. ; *
  44. ; * If you want to install a new TrapHandler you can do it
  45. ; * now in your Hook function. Or tell the Task to stop at the
  46. ; * first instruction.
  47. ; * The PPC Task is initiated after all Hook functions complete.
  48. ; * The result defines if potential hooks should not be called.
  49. ; * If you return TRUE no other hooks are called.
  50. ; * (Set)
  51. ; */
  52. PPCINFOTAG_TASKHOOK=    (PPCINFOTAG_Dummy+$6)
  53.  
  54. ;/* Remove a TaskHook (V45)
  55. ; * (Set)
  56. ; */
  57. PPCINFOTAG_REMTASKHOOK=    (PPCINFOTAG_Dummy+$7)
  58.  
  59. ;/* PLL Devider of the CPU (V45)
  60. ; * (Get)
  61. ; */
  62. PPCINFOTAG_CPUPLL    =    (PPCINFOTAG_Dummy+$8)
  63.  
  64.  
  65.     STRUCTURE    TaskHookMsg_Create,0
  66.     ULONG        mc_MethodID
  67.     ULONG        mc_Version
  68.     APTR        mc_ElfObject
  69.     APTR        mc_Tags
  70.     LABEL        TaskHookMsg_Create_SIZEOF
  71.  
  72.     STRUCTURE    TaskHookMsg_Delete,0
  73.     ULONG        md_MethodID
  74.     ULONG        md_Version
  75.     LABEL        TaskHookMsg_Delete_SIZEOF
  76.  
  77.     STRUCTURE    TaskHookMsg_Get,0
  78.     ULONG        mg_MethodID
  79.     ULONG        mg_Version
  80.     APTR        mg_Tags
  81.     LABEL        TaskHookMsg_Get_SIZEOF
  82.  
  83.     STRUCTURE    TaskHookMsg_Set,0
  84.     ULONG        ms_MethodID
  85.     ULONG        ms_Version
  86.     APTR        ms_Tags
  87.     LABEL        TaskHookMsg_Set_SIZEOF
  88.  
  89. PPCTASKHOOKMETHOD_CREATE    =    0
  90. PPCTASKHOOKMETHOD_DELETE    =    1
  91. PPCTASKHOOKMETHOD_GET        =    2
  92. PPCTASKHOOKMETHOD_SET        =    3
  93.  
  94. ;/* Current known PowerPC CPU versions */
  95. CPU_603        =    3
  96. CPU_604        =    4
  97. CPU_602        =    5
  98. CPU_603e    =    6
  99. CPU_603p    =    7
  100. CPU_604e    =    9
  101.  
  102.     ENDC
  103.